package com.caiyigo.baihua.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.caiyigo.baihua.dao.SystemLogMapper;
import com.caiyigo.baihua.dao.SystemLogMapperSql;
import com.caiyigo.baihua.dto.LogDto;
import com.caiyigo.baihua.model.SystemLog;
import com.caiyigo.baihua.service.LogService;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

/**
 * @author caihaihui
 *
 */
@Service
public class LogServiceImpl implements LogService {
	@Resource(name = "systemLogMapper")
	SystemLogMapper mapper;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.caiyigo.zoo.service.LogService#deleteByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.caiyigo.zoo.service.LogService#insert(com.caiyigo.zoo.model.SystemLog
	 * )
	 */
	@Override
	public int insert(SystemLog record) {
		// TODO Auto-generated method stub
		return mapper.insert(record);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.caiyigo.zoo.service.LogService#insertSelective(com.caiyigo.zoo.model
	 * .SystemLog)
	 */
	@Override
	public int insertSelective(SystemLog record) {
		// TODO Auto-generated method stub
		return mapper.insertSelective(record);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.caiyigo.zoo.service.LogService#selectByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public SystemLog selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.caiyigo.zoo.service.LogService#updateByPrimaryKeySelective(com.caiyigo
	 * .zoo.model.SystemLog)
	 */
	@Override
	public int updateByPrimaryKeySelective(SystemLog record) {
		// TODO Auto-generated method stub
		return 0;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.caiyigo.zoo.service.LogService#updateByPrimaryKey(com.caiyigo.zoo
	 * .model.SystemLog)
	 */
	@Override
	public int updateByPrimaryKey(SystemLog record) {
		// TODO Auto-generated method stub
		return 0;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.caiyigo.zoo.service.LogService#getUserList(com.github.miemiedev.mybatis
	 * .paginator.domain.PageBounds)
	 */
	@Override
	public List getUserList(LogDto log,PageBounds pageBounds) {
		// TODO Auto-generated method stub
		return systemLogMapperSql.list(log,pageBounds);
	}

	@Resource(name = "systemLogMapperSql")
	SystemLogMapperSql systemLogMapperSql;
}
